import request from '@/utils/request'

// 查询冲压电镀件列表
export function listPlating(query) {
  return request({
    url: '/system/plating/list',
    method: 'get',
    params: query
  })
}

// 查询冲压电镀件详细
export function getPlating(id) {
  return request({
    url: '/system/plating/' + id,
    method: 'get'
  })
}

// 新增冲压电镀件
export function addPlating(data) {
  return request({
    url: '/system/plating',
    method: 'post',
    data: data
  })
}

// 修改冲压电镀件
export function updatePlating(data) {
  return request({
    url: '/system/plating',
    method: 'put',
    data: data
  })
}

// 删除冲压电镀件
export function delPlating(id) {
  return request({
    url: '/system/plating/' + id,
    method: 'delete'
  })
}
